/* JS for All Kendo UI Components Arabic (ar-SA) Language Pack | Written by IKKI | 2018-02-03 */

/* Cultures ------------------------------ */
(function ( window, undefined ) {
    kendo.cultures["ar-SA"] = {
        name: "ar-SA",
        numberFormat: {
            pattern: ["-n"],
            decimals: 2,
            ",": ",",
            ".": ".",
            groupSize: [3],
            percent: {
                pattern: ["-n %","n %"],
                decimals: 2,
                ",": ",",
                ".": ".",
                groupSize: [3],
                symbol: "%"
            },
            currency: {
                name: "Saudi Riyal",
                abbr: "SAR",
                pattern: ["-n $","n $"],
                decimals: 2,
                ",": ",",
                ".": ".",
                groupSize: [3],
                symbol: "ر.س.‏"
            }
        },
        calendars: {
            standard: {
                days: {
                    names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
                    namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
                    namesShort: ["ح","ن","ث","ر","خ","ج","س"]
                },
                months: {
                    names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة"],
                    namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة"]
                },
                AM: ["ص","ص","ص"],
                PM: ["م","م","م"],
                patterns: {
                    d: "dd/MM/yy",
                    D: "dd/MMMM/yyyy",
                    F: "dd/MMMM/yyyy hh:mm:ss tt",
                    g: "dd/MM/yy hh:mm tt",
                    G: "dd/MM/yy hh:mm:ss tt",
                    m: "dd MMMM",
                    M: "dd MMMM",
                    s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss",
                    t: "hh:mm tt",
                    T: "hh:mm:ss tt",
                    u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'",
                    y: "MMMM, yyyy",
                    Y: "MMMM, yyyy"
                },
                "/": "/",
                ":": ":",
                firstDay: 0
            }
        }
    }
})(this);

/* Messages ------------------------------ */
(function ($, undefined) {
    /* FlatColorPicker messages */

    if (kendo.ui.FlatColorPicker) {
        kendo.ui.FlatColorPicker.prototype.options.messages =
            $.extend(true, kendo.ui.FlatColorPicker.prototype.options.messages,{
                "apply": "Apply",
                "cancel": "Cancel",
                "noColor": "no color",
                "clearColor": "Clear color"
            });
    }

    /* ColorPicker messages */

    if (kendo.ui.ColorPicker) {
        kendo.ui.ColorPicker.prototype.options.messages =
            $.extend(true, kendo.ui.ColorPicker.prototype.options.messages,{
                "apply": "Apply",
                "cancel": "Cancel",
                "noColor": "no color",
                "clearColor": "Clear color"
            });
    }

    /* ColumnMenu messages */

    if (kendo.ui.ColumnMenu) {
        kendo.ui.ColumnMenu.prototype.options.messages =
            $.extend(true, kendo.ui.ColumnMenu.prototype.options.messages,{
                "sortAscending": "Sort Ascending",
                "sortDescending": "Sort Descending",
                "filter": "Filter",
                "columns": "Columns",
                "done": "Done",
                "settings": "Column Settings",
                "lock": "Lock",
                "unlock": "Unlock"
            });
    }

    /* Editor messages */

    if (kendo.ui.Editor) {
        kendo.ui.Editor.prototype.options.messages =
            $.extend(true, kendo.ui.Editor.prototype.options.messages,{
                "bold": "Bold",
                "italic": "Italic",
                "underline": "Underline",
                "strikethrough": "Strikethrough",
                "superscript": "Superscript",
                "subscript": "Subscript",
                "justifyCenter": "Center text",
                "justifyLeft": "Align text left",
                "justifyRight": "Align text right",
                "justifyFull": "Justify",
                "insertUnorderedList": "Insert unordered list",
                "insertOrderedList": "Insert ordered list",
                "indent": "Indent",
                "outdent": "Outdent",
                "createLink": "Insert hyperlink",
                "unlink": "Remove hyperlink",
                "insertImage": "Insert image",
                "insertFile": "Insert file",
                "insertHtml": "Insert HTML",
                "viewHtml": "View HTML",
                "fontName": "Select font family",
                "fontNameInherit": "(inherited font)",
                "fontSize": "Select font size",
                "fontSizeInherit": "(inherited size)",
                "formatBlock": "Format",
                "formatting": "Format",
                "foreColor": "Color",
                "backColor": "Background color",
                "style": "Styles",
                "emptyFolder": "Empty Folder",
                "uploadFile": "Upload",
                "overflowAnchor": "More tools",
                "orderBy": "Arrange by:",
                "orderBySize": "Size",
                "orderByName": "Name",
                "invalidFileType": "The selected file \"{0}\" is not valid. Supported file types are {1}.",
                "deleteFile": 'Are you sure you want to delete "{0}"?',
                "overwriteFile": 'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',
                "directoryNotFound": "A directory with this name was not found.",
                "imageWebAddress": "Web address",
                "imageAltText": "Alternate text",
                "imageWidth": "Width (px)",
                "imageHeight": "Height (px)",
                "fileWebAddress": "Web address",
                "fileTitle": "Title",
                "linkWebAddress": "Web address",
                "linkText": "Text",
                "linkToolTip": "ToolTip",
                "linkOpenInNewWindow": "Open link in new window",
                "dialogUpdate": "Update",
                "dialogInsert": "Insert",
                "dialogButtonSeparator": "or",
                "dialogCancel": "Cancel",
                "cleanFormatting": "Clean formatting",
                "createTable": "Create table",
                "addColumnLeft": "Add column on the left",
                "addColumnRight": "Add column on the right",
                "addRowAbove": "Add row above",
                "addRowBelow": "Add row below",
                "deleteRow": "Delete row",
                "deleteColumn": "Delete column",
                "dialogOk": "Ok",
                "tableWizard": "Table Wizard",
                "tableTab": "Table",
                "cellTab": "Cell",
                "accessibilityTab": "Accessibility",
                "caption": "Caption",
                "summary": "Summary",
                "width": "Width",
                "height": "Height",
                "units": "Units",
                "cellSpacing": "Cell Spacing",
                "cellPadding": "Cell Padding",
                "cellMargin": "Cell Margin",
                "alignment": "Alignment",
                "background": "Background",
                "cssClass": "CSS Class",
                "id": "ID",
                "border": "Border",
                "borderStyle": "Border Style",
                "collapseBorders": "Collapse borders",
                "wrapText": "Wrap text",
                "associateCellsWithHeaders": "Associate cells with headers",
                "alignLeft": "Align Left",
                "alignCenter": "Align Center",
                "alignRight": "Align Right",
                "alignLeftTop": "Align Left Top",
                "alignCenterTop": "Align Center Top",
                "alignRightTop": "Align Right Top",
                "alignLeftMiddle": "Align Left Middle",
                "alignCenterMiddle": "Align Center Middle",
                "alignRightMiddle": "Align Right Middle",
                "alignLeftBottom": "Align Left Bottom",
                "alignCenterBottom": "Align Center Bottom",
                "alignRightBottom": "Align Right Bottom",
                "alignRemove": "Remove Alignment",
                "columns": "Columns",
                "rows": "Rows",
                "selectAllCells": "Select All Cells"
            });
    }

    /* FileBrowser messages */

    if (kendo.ui.FileBrowser) {
        kendo.ui.FileBrowser.prototype.options.messages =
            $.extend(true, kendo.ui.FileBrowser.prototype.options.messages,{
                "uploadFile": "Upload",
                "orderBy": "Arrange by",
                "orderByName": "Name",
                "orderBySize": "Size",
                "directoryNotFound": "A directory with this name was not found.",
                "emptyFolder": "Empty Folder",
                "deleteFile": 'Are you sure you want to delete "{0}"?',
                "invalidFileType": "The selected file \"{0}\" is not valid. Supported file types are {1}.",
                "overwriteFile": "A file with name \"{0}\" already exists in the current directory. Do you want to overwrite it?",
                "dropFilesHere": "drop file here to upload",
                "search": "Search"
            });
    }

    /* FilterCell messages */

    if (kendo.ui.FilterCell) {
        kendo.ui.FilterCell.prototype.options.messages =
            $.extend(true, kendo.ui.FilterCell.prototype.options.messages,{
                "isTrue": "is true",
                "isFalse": "is false",
                "filter": "Filter",
                "clear": "Clear",
                "operator": "Operator"
            });
    }

    /* FilterCell operators */

    if (kendo.ui.FilterCell) {
        kendo.ui.FilterCell.prototype.options.operators =
            $.extend(true, kendo.ui.FilterCell.prototype.options.operators,{
                "string": {
                    "eq": "Is equal to",
                    "neq": "Is not equal to",
                    "startswith": "Starts with",
                    "contains": "Contains",
                    "doesnotcontain": "Does not contain",
                    "endswith": "Ends with",
                    "isnull": "Is null",
                    "isnotnull": "Is not null",
                    "isempty": "Is empty",
                    "isnotempty": "Is not empty",
                    "isnullorempty": "Has no value",
                    "isnotnullorempty": "Has value"
                },
                "number": {
                    "eq": "Is equal to",
                    "neq": "Is not equal to",
                    "gte": "Is greater than or equal to",
                    "gt": "Is greater than",
                    "lte": "Is less than or equal to",
                    "lt": "Is less than",
                    "isnull": "Is null",
                    "isnotnull": "Is not null"
                },
                "date": {
                    "eq": "Is equal to",
                    "neq": "Is not equal to",
                    "gte": "Is after or equal to",
                    "gt": "Is after",
                    "lte": "Is before or equal to",
                    "lt": "Is before",
                    "isnull": "Is null",
                    "isnotnull": "Is not null"
                },
                "enums": {
                    "eq": "Is equal to",
                    "neq": "Is not equal to",
                    "isnull": "Is null",
                    "isnotnull": "Is not null"
                }
            });
    }

    /* FilterMenu messages */

    if (kendo.ui.FilterMenu) {
        kendo.ui.FilterMenu.prototype.options.messages =
            $.extend(true, kendo.ui.FilterMenu.prototype.options.messages,{
                "info": "Show items with value that:",
                "isTrue": "is true",
                "isFalse": "is false",
                "filter": "Filter",
                "clear": "Clear",
                "and": "And",
                "or": "Or",
                "selectValue": "-Select value-",
                "operator": "Operator",
                "value": "Value",
                "cancel": "Cancel"
            });
    }

    /* FilterMenu operator messages */

    if (kendo.ui.FilterMenu) {
        kendo.ui.FilterMenu.prototype.options.operators =
            $.extend(true, kendo.ui.FilterMenu.prototype.options.operators,{
                "string": {
                    "eq": "Is equal to",
                    "neq": "Is not equal to",
                    "startswith": "Starts with",
                    "contains": "Contains",
                    "doesnotcontain": "Does not contain",
                    "endswith": "Ends with",
                    "isnull": "Is null",
                    "isnotnull": "Is not null",
                    "isempty": "Is empty",
                    "isnotempty": "Is not empty",
                    "isnullorempty": "Has no value",
                    "isnotnullorempty": "Has value"
                },
                "number": {
                    "eq": "Is equal to",
                    "neq": "Is not equal to",
                    "gte": "Is greater than or equal to",
                    "gt": "Is greater than",
                    "lte": "Is less than or equal to",
                    "lt": "Is less than",
                    "isnull": "Is null",
                    "isnotnull": "Is not null"
                },
                "date": {
                    "eq": "Is equal to",
                    "neq": "Is not equal to",
                    "gte": "Is after or equal to",
                    "gt": "Is after",
                    "lte": "Is before or equal to",
                    "lt": "Is before",
                    "isnull": "Is null",
                    "isnotnull": "Is not null"
                },
                "enums": {
                    "eq": "Is equal to",
                    "neq": "Is not equal to",
                    "isnull": "Is null",
                    "isnotnull": "Is not null"
                }
            });
    }

    /* FilterMultiCheck messages */

    if (kendo.ui.FilterMultiCheck) {
        kendo.ui.FilterMultiCheck.prototype.options.messages =
            $.extend(true, kendo.ui.FilterMultiCheck.prototype.options.messages,{
                "checkAll": "Select All",
                "clear": "Clear",
                "filter": "Filter",
                "search": "Search"
            });
    }

    /* Gantt messages */

    if (kendo.ui.Gantt) {
        kendo.ui.Gantt.prototype.options.messages =
            $.extend(true, kendo.ui.Gantt.prototype.options.messages,{
                "actions": {
                    "addChild": "Add Child",
                    "append": "Add Task",
                    "insertAfter": "Add Below",
                    "insertBefore": "Add Above",
                    "pdf": "Export to PDF"
                },
                "cancel": "Cancel",
                "deleteDependencyWindowTitle": "Delete dependency",
                "deleteTaskWindowTitle": "Delete task",
                "destroy": "Delete",
                "editor": {
                    "assingButton": "Assign",
                    "editorTitle": "Task",
                    "end": "End",
                    "percentComplete": "Complete",
                    "resources": "Resources",
                    "resourcesEditorTitle": "Resources",
                    "resourcesHeader": "Resources",
                    "start": "Start",
                    "title": "Title",
                    "unitsHeader": "Units"
                },
                "save": "Save",
                "views": {
                    "day": "Day",
                    "end": "End",
                    "month": "Month",
                    "start": "Start",
                    "week": "Week",
                    "year": "Year"
                }
            });
    }

    /* Grid messages */

    if (kendo.ui.Grid) {
        kendo.ui.Grid.prototype.options.messages =
            $.extend(true, kendo.ui.Grid.prototype.options.messages,{
                "commands": {
                    "cancel": "Cancel changes",
                    "canceledit": "Cancel",
                    "create": "Add new record",
                    "destroy": "Delete",
                    "edit": "Edit",
                    "excel": "Export to Excel",
                    "pdf": "Export to PDF",
                    "save": "Save changes",
                    "select": "Select",
                    "update": "Update"
                },
                "editable": {
                    "cancelDelete": "Cancel",
                    "confirmation": "Are you sure you want to delete this record?",
                    "confirmDelete": "Delete"
                },
                "noRecords": "No records available.",
                "expandCollapseColumnHeader": ""
            });
    }

    /* TreeList messages */

    if (kendo.ui.TreeList) {
        kendo.ui.TreeList.prototype.options.messages =
            $.extend(true, kendo.ui.TreeList.prototype.options.messages,{
                "noRows": "No records to display",
                "loading": "Loading...",
                "requestFailed": "Request failed.",
                "retry": "Retry",
                "commands": {
                    "edit": "Edit",
                    "update": "Update",
                    "canceledit": "Cancel",
                    "create": "Add new record",
                    "createchild": "Add child record",
                    "destroy": "Delete",
                    "excel": "Export to Excel",
                    "pdf": "Export to PDF"
                }
            });
    }

    /* Groupable messages */

    if (kendo.ui.Groupable) {
        kendo.ui.Groupable.prototype.options.messages =
            $.extend(true, kendo.ui.Groupable.prototype.options.messages,{
                "empty": "Drag a column header and drop it here to group by that column"
            });
    }

    /* NumericTextBox messages */

    if (kendo.ui.NumericTextBox) {
        kendo.ui.NumericTextBox.prototype.options =
            $.extend(true, kendo.ui.NumericTextBox.prototype.options,{
                "upArrowText": "Increase value",
                "downArrowText": "Decrease value"
            });
    }

    /* MediaPlayer messages */

    if (kendo.ui.MediaPlayer) {
        kendo.ui.MediaPlayer.prototype.options.messages =
            $.extend(true, kendo.ui.MediaPlayer.prototype.options.messages,{
                "pause": "Pause",
                "play": "Play",
                "mute": "Mute",
                "unmute": "Unmute",
                "quality": "Quality",
                "fullscreen": "Full Screen"
            });
    }

    /* Pager messages */

    if (kendo.ui.Pager) {
        kendo.ui.Pager.prototype.options.messages =
            $.extend(true, kendo.ui.Pager.prototype.options.messages,{
                "allPages": "All",
                "display": "{0} - {1} of {2} items",
                "empty": "No items to display",
                "page": "Page",
                "of": "of {0}",
                "itemsPerPage": "items per page",
                "first": "Go to the first page",
                "previous": "Go to the previous page",
                "next": "Go to the next page",
                "last": "Go to the last page",
                "refresh": "Refresh",
                "morePages": "More pages"
            });
    }

    /* PivotGrid messages */

    if (kendo.ui.PivotGrid) {
        kendo.ui.PivotGrid.prototype.options.messages =
            $.extend(true, kendo.ui.PivotGrid.prototype.options.messages,{
                "measureFields": "Drop Data Fields Here",
                "columnFields": "Drop Column Fields Here",
                "rowFields": "Drop Rows Fields Here"
            });
    }

    /* PivotFieldMenu messages */

    if (kendo.ui.PivotFieldMenu) {
        kendo.ui.PivotFieldMenu.prototype.options.messages =
            $.extend(true, kendo.ui.PivotFieldMenu.prototype.options.messages,{
                "info": "Show items with value that:",
                "filterFields": "Fields Filter",
                "filter": "Filter",
                "include": "Include Fields...",
                "title": "Fields to include",
                "clear": "Clear",
                "ok": "Ok",
                "cancel": "Cancel",
                "operators": {
                    "contains": "Contains",
                    "doesnotcontain": "Does not contain",
                    "startswith": "Starts with",
                    "endswith": "Ends with",
                    "eq": "Is equal to",
                    "neq": "Is not equal to"
                }
            });
    }

    /* RecurrenceEditor messages */

    if (kendo.ui.RecurrenceEditor) {
        kendo.ui.RecurrenceEditor.prototype.options.messages =
            $.extend(true, kendo.ui.RecurrenceEditor.prototype.options.messages,{
                "frequencies": {
                    "never": "Never",
                    "hourly": "Hourly",
                    "daily": "Daily",
                    "weekly": "Weekly",
                    "monthly": "Monthly",
                    "yearly": "Yearly"
                },
                "hourly": {
                    "repeatEvery": "Repeat every: ",
                    "interval": " hour(s)"
                },
                "daily": {
                    "repeatEvery": "Repeat every: ",
                    "interval": " day(s)"
                },
                "weekly": {
                    "interval": " week(s)",
                    "repeatEvery": "Repeat every: ",
                    "repeatOn": "Repeat on: "
                },
                "monthly": {
                    "repeatEvery": "Repeat every: ",
                    "repeatOn": "Repeat on: ",
                    "interval": " month(s)",
                    "day": "Day "
                },
                "yearly": {
                    "repeatEvery": "Repeat every: ",
                    "repeatOn": "Repeat on: ",
                    "interval": " year(s)",
                    "of": " of "
                },
                "end": {
                    "label": "End:",
                    "mobileLabel": "Ends",
                    "never": "Never",
                    "after": "After ",
                    "occurrence": " occurrence(s)",
                    "on": "On "
                },
                "offsetPositions": {
                    "first": "first",
                    "second": "second",
                    "third": "third",
                    "fourth": "fourth",
                    "last": "last"
                },
                "weekdays": {
                    "day": "day",
                    "weekday": "weekday",
                    "weekend": "weekend day"
                }
            });
    }

    /* Scheduler messages */

    if (kendo.ui.Scheduler) {
        kendo.ui.Scheduler.prototype.options.messages =
            $.extend(true, kendo.ui.Scheduler.prototype.options.messages,{
                "allDay": "all day",
                "date": "Date",
                "event": "Event",
                "time": "Time",
                "showFullDay": "Show full day",
                "showWorkDay": "Show business hours",
                "today": "Today",
                "save": "Save",
                "cancel": "Cancel",
                "destroy": "Delete",
                "deleteWindowTitle": "Delete event",
                "ariaSlotLabel": "Selected from {0:t} to {1:t}",
                "ariaEventLabel": "{0} on {1:D} at {2:t}",
                "editable": {
                    "confirmation": "Are you sure you want to delete this event?"
                },
                "views": {
                    "day": "Day",
                    "week": "Week",
                    "workWeek": "Work Week",
                    "agenda": "Agenda",
                    "month": "Month"
                },
                "recurrenceMessages": {
                    "deleteWindowTitle": "Delete Recurring Item",
                    "deleteWindowOccurrence": "Delete current occurrence",
                    "deleteWindowSeries": "Delete the series",
                    "editWindowTitle": "Edit Recurring Item",
                    "editWindowOccurrence": "Edit current occurrence",
                    "editWindowSeries": "Edit the series",
                    "deleteRecurring": "Do you want to delete only this event occurrence or the whole series?",
                    "editRecurring": "Do you want to edit only this event occurrence or the whole series?"
                },
                "editor": {
                    "title": "Title",
                    "start": "Start",
                    "end": "End",
                    "allDayEvent": "All day event",
                    "description": "Description",
                    "repeat": "Repeat",
                    "timezone": " ",
                    "startTimezone": "Start timezone",
                    "endTimezone": "End timezone",
                    "separateTimezones": "Use separate start and end time zones",
                    "timezoneEditorTitle": "Timezones",
                    "timezoneEditorButton": "Time zone",
                    "timezoneTitle": "Time zones",
                    "noTimezone": "No timezone",
                    "editorTitle": "Event"
                }
            });
    }

    /* Spreadsheet messages */

    if (kendo.spreadsheet && kendo.spreadsheet.messages.borderPalette) {
        kendo.spreadsheet.messages.borderPalette =
            $.extend(true, kendo.spreadsheet.messages.borderPalette,{
                "allBorders": "All borders",
                "insideBorders": "Inside borders",
                "insideHorizontalBorders": "Inside horizontal borders",
                "insideVerticalBorders": "Inside vertical borders",
                "outsideBorders": "Outside borders",
                "leftBorder": "Left border",
                "topBorder": "Top border",
                "rightBorder": "Right border",
                "bottomBorder": "Bottom border",
                "noBorders": "No border",
                "reset": "Reset color",
                "customColor": "Custom color...",
                "apply": "Apply",
                "cancel": "Cancel"
            });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.dialogs) {
        kendo.spreadsheet.messages.dialogs =
            $.extend(true, kendo.spreadsheet.messages.dialogs,{
                "apply": "Apply",
                "save": "Save",
                "cancel": "Cancel",
                "remove": "Remove",
                "retry": "Retry",
                "revert": "Revert",
                "okText": "OK",
                "formatCellsDialog": {
                    "title": "Format",
                    "categories": {
                        "number": "Number",
                        "currency": "Currency",
                        "date": "Date"
                    }
                },
                "fontFamilyDialog": {
                    "title": "Font"
                },
                "fontSizeDialog": {
                    "title": "Font size"
                },
                "bordersDialog": {
                    "title": "Borders"
                },
                "alignmentDialog": {
                    "title": "Alignment",
                    "buttons": {
                        "justtifyLeft": "Align left",
                        "justifyCenter": "Center",
                        "justifyRight": "Align right",
                        "justifyFull": "Justify",
                        "alignTop": "Align top",
                        "alignMiddle": "Align middle",
                        "alignBottom": "Align bottom"
                    }
                },
                "mergeDialog": {
                    "title": "Merge cells",
                    "buttons": {
                        "mergeCells": "Merge all",
                        "mergeHorizontally": "Merge horizontally",
                        "mergeVertically": "Merge vertically",
                        "unmerge": "Unmerge"
                    }
                },
                "freezeDialog": {
                    "title": "Freeze panes",
                    "buttons": {
                        "freezePanes": "Freeze panes",
                        "freezeRows": "Freeze rows",
                        "freezeColumns": "Freeze columns",
                        "unfreeze": "Unfreeze panes"
                    }
                },
                "confirmationDialog": {
                    "text": "Are you sure you want to remove this sheet?",
                    "title": "Sheet remove"
                },
                "validationDialog": {
                    "title": "Data Validation",
                    "hintMessage": "Please enter a valid {0} value {1}.",
                    "hintTitle": "Validation {0}",
                    "criteria": {
                        "any": "Any value",
                        "number": "Number",
                        "text": "Text",
                        "date": "Date",
                        "custom": "Custom Formula",
                        "list": "List"
                    },
                    "comparers": {
                        "greaterThan": "greater than",
                        "lessThan": "less than",
                        "between": "between",
                        "notBetween": "not between",
                        "equalTo": "equal to",
                        "notEqualTo": "not equal to",
                        "greaterThanOrEqualTo": "greater than or equal to",
                        "lessThanOrEqualTo": "less than or equal to"
                    },
                    "comparerMessages": {
                        "greaterThan": "greater than {0}",
                        "lessThan": "less than {0}",
                        "between": "between {0} and {1}",
                        "notBetween": "not between {0} and {1}",
                        "equalTo": "equal to {0}",
                        "notEqualTo": "not equal to {0}",
                        "greaterThanOrEqualTo": "greater than or equal to {0}",
                        "lessThanOrEqualTo": "less than or equal to {0}",
                        "custom": "that satisfies the formula: {0}"
                    },
                    "labels": {
                        "criteria": "Criteria",
                        "comparer": "Comparer",
                        "min": "Min",
                        "max": "Max",
                        "value": "Value",
                        "start": "Start",
                        "end": "End",
                        "onInvalidData": "On invalid data",
                        "rejectInput": "Reject input",
                        "showWarning": "Show warning",
                        "showHint": "Show hint",
                        "hintTitle": "Hint title",
                        "hintMessage": "Hint message",
                        "ignoreBlank": "Ignore blank"
                    },
                    "placeholders": {
                        "typeTitle": "Type title",
                        "typeMessage": "Type message"
                    }
                },
                "exportAsDialog": {
                    "title": "Export...",
                    "labels": {
                        "fileName": "File name",
                        "saveAsType": "Save as type",
                        "exportArea": "Export",
                        "paperSize": "Paper size",
                        "margins": "Margins",
                        "orientation": "Orientation",
                        "print": "Print",
                        "guidelines": "Guidelines",
                        "center": "Center",
                        "horizontally": "Horizontally",
                        "vertically": "Vertically"
                    }
                },
                "modifyMergedDialog": {
                    "errorMessage": "Cannot change part of a merged cell."
                },
                "useKeyboardDialog": {
                    "title": "Copying and pasting",
                    "errorMessage": "These actions cannot be invoked through the menu. Please use the keyboard shortcuts instead:",
                    "labels": {
                        "forCopy": "for copy",
                        "forCut": "for cut",
                        "forPaste": "for paste"
                    }
                },
                "unsupportedSelectionDialog": {
                    "errorMessage": "That action cannot be performed on multiple selection."
                }
            });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.filterMenu) {
        kendo.spreadsheet.messages.filterMenu =
            $.extend(true, kendo.spreadsheet.messages.filterMenu,{
                "sortAscending": "Sort range A to Z",
                "sortDescending": "Sort range Z to A",
                "filterByValue": "Filter by value",
                "filterByCondition": "Filter by condition",
                "apply": "Apply",
                "search": "Search",
                "addToCurrent": "Add to current selection",
                "clear": "Clear",
                "blanks": "(Blanks)",
                "operatorNone": "None",
                "and": "AND",
                "or": "OR",
                "operators": {
                    "string": {
                        "contains": "Text contains",
                        "doesnotcontain": "Text does not contain",
                        "startswith": "Text starts with",
                        "endswith": "Text ends with"
                    },
                    "date": {
                        "eq":  "Date is",
                        "neq": "Date is not",
                        "lt":  "Date is before",
                        "gt":  "Date is after"
                    },
                    "number": {
                        "eq": "Is equal to",
                        "neq": "Is not equal to",
                        "gte": "Is greater than or equal to",
                        "gt": "Is greater than",
                        "lte": "Is less than or equal to",
                        "lt": "Is less than"
                    }
                }
            });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.colorPicker) {
        kendo.spreadsheet.messages.colorPicker =
            $.extend(true, kendo.spreadsheet.messages.colorPicker,{
                "reset": "Reset color",
                "customColor": "Custom color...",
                "apply": "Apply",
                "cancel": "Cancel"
            });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.toolbar) {
        kendo.spreadsheet.messages.toolbar =
            $.extend(true, kendo.spreadsheet.messages.toolbar,{
                "addColumnLeft": "Add column left",
                "addColumnRight": "Add column right",
                "addRowAbove": "Add row above",
                "addRowBelow": "Add row below",
                "alignment": "Alignment",
                "alignmentButtons": {
                    "justtifyLeft": "Align left",
                    "justifyCenter": "Center",
                    "justifyRight": "Align right",
                    "justifyFull": "Justify",
                    "alignTop": "Align top",
                    "alignMiddle": "Align middle",
                    "alignBottom": "Align bottom"
                },
                "backgroundColor": "Background",
                "bold": "Bold",
                "borders": "Borders",
                "colorPicker": {
                    "reset": "Reset color",
                    "customColor": "Custom color..."
                },
                "copy": "Copy",
                "cut": "Cut",
                "deleteColumn": "Delete column",
                "deleteRow": "Delete row",
                "excelImport": "Import from Excel...",
                "filter": "Filter",
                "fontFamily": "Font",
                "fontSize": "Font size",
                "format": "Custom format...",
                "formatTypes": {
                    "automatic": "Automatic",
                    "number": "Number",
                    "percent": "Percent",
                    "financial": "Financial",
                    "currency": "Currency",
                    "date": "Date",
                    "time": "Time",
                    "dateTime": "Date time",
                    "duration": "Duration",
                    "moreFormats": "More formats..."
                },
                "formatDecreaseDecimal": "Decrease decimal",
                "formatIncreaseDecimal": "Increase decimal",
                "freeze": "Freeze panes",
                "freezeButtons": {
                    "freezePanes": "Freeze panes",
                    "freezeRows": "Freeze rows",
                    "freezeColumns": "Freeze columns",
                    "unfreeze": "Unfreeze panes"
                },
                "italic": "Italic",
                "merge": "Merge cells",
                "mergeButtons": {
                    "mergeCells": "Merge all",
                    "mergeHorizontally": "Merge horizontally",
                    "mergeVertically": "Merge vertically",
                    "unmerge": "Unmerge"
                },
                "open": "Open...",
                "paste": "Paste",
                "quickAccess": {
                    "redo": "Redo",
                    "undo": "Undo"
                },
                "saveAs": "Save As...",
                "sortAsc": "Sort ascending",
                "sortDesc": "Sort descending",
                "sortButtons": {
                    "sortSheetAsc": "Sort sheet A to Z",
                    "sortSheetDesc": "Sort sheet Z to A",
                    "sortRangeAsc": "Sort range A to Z",
                    "sortRangeDesc": "Sort range Z to A"
                },
                "textColor": "Text Color",
                "textWrap": "Wrap text",
                "underline": "Underline",
                "validation": "Data validation..."
            });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.view) {
        kendo.spreadsheet.messages.view =
            $.extend(true, kendo.spreadsheet.messages.view,{
                "errors": {
                    "shiftingNonblankCells": "Cannot insert cells due to data loss possibility. Select another insert location or delete the data from the end of your worksheet.",
                    "filterRangeContainingMerges": "Cannot create a filter within a range containing merges",
                    "validationError": "The value that you entered violates the validation rules set on the cell."
                },
                "tabs": {
                    "home": "Home",
                    "insert": "Insert",
                    "data": "Data"
                }
            });
    }

    /* Slider messages */

    if (kendo.ui.Slider) {
        kendo.ui.Slider.prototype.options =
            $.extend(true, kendo.ui.Slider.prototype.options,{
                "increaseButtonTitle": "Increase",
                "decreaseButtonTitle": "Decrease"
            });
    }

    /* ListBox messaages */

    if (kendo.ui.ListBox) {
        kendo.ui.ListBox.prototype.options.messages =
            $.extend(true, kendo.ui.ListBox.prototype.options.messages,{
                "tools": {
                    "remove": "Delete",
                    "moveUp": "Move Up",
                    "moveDown": "Move Down",
                    "transferTo": "Transfer To",
                    "transferFrom": "Transfer From",
                    "transferAllTo": "Transfer All To",
                    "transferAllFrom": "Transfer All From"
                }
            });
    }

    /* TreeList messages */

    if (kendo.ui.TreeList) {
        kendo.ui.TreeList.prototype.options.messages =
            $.extend(true, kendo.ui.TreeList.prototype.options.messages,{
                "noRows": "No records to display",
                "loading": "Loading...",
                "requestFailed": "Request failed.",
                "retry": "Retry",
                "commands": {
                    "edit": "Edit",
                    "update": "Update",
                    "canceledit": "Cancel",
                    "create": "Add new record",
                    "createchild": "Add child record",
                    "destroy": "Delete",
                    "excel": "Export to Excel",
                    "pdf": "Export to PDF"
                }
            });
    }

    /* TreeView messages */

    if (kendo.ui.TreeView) {
        kendo.ui.TreeView.prototype.options.messages =
            $.extend(true, kendo.ui.TreeView.prototype.options.messages,{
                "loading": "Loading...",
                "requestFailed": "Request failed.",
                "retry": "Retry"
            });
    }

    /* Upload messages */

    if (kendo.ui.Upload) {
        kendo.ui.Upload.prototype.options.localization=
            $.extend(true, kendo.ui.Upload.prototype.options.localization,{
                "select": "Select files...",
                "cancel": "Cancel",
                "retry": "Retry",
                "remove": "Remove",
                "clearSelectedFiles": "Clear",
                "uploadSelectedFiles": "Upload files",
                "dropFilesHere": "Drop files here to upload",
                "statusUploading": "uploading",
                "statusUploaded": "uploaded",
                "statusWarning": "warning",
                "statusFailed": "failed",
                "headerStatusUploading": "Uploading...",
                "headerStatusUploaded": "Done",
                "invalidMaxFileSize": "File size too large.",
                "invalidMinFileSize": "File size too small.",
                "invalidFileExtension": "File type not allowed."
            });
    }

    /* Validator messages */

    if (kendo.ui.Validator) {
        kendo.ui.Validator.prototype.options.messages =
            $.extend(true, kendo.ui.Validator.prototype.options.messages,{
                "required": "{0} is required",
                "pattern": "{0} is not valid",
                "min": "{0} should be greater than or equal to {1}",
                "max": "{0} should be smaller than or equal to {1}",
                "step": "{0} is not valid",
                "email": "{0} is not valid email",
                "url": "{0} is not valid URL",
                "date": "{0} is not valid date",
                "dateCompare": "End date should be greater than or equal to the start date"
            });
    }

    /* kendo.ui.progress method */
    if (kendo.ui.progress) {
        kendo.ui.progress.messages =
            $.extend(true, kendo.ui.progress.messages, {
                loading: "Loading..."
            });
    }

    /* Dialog */

    if (kendo.ui.Dialog) {
        kendo.ui.Dialog.prototype.options.messages =
            $.extend(true, kendo.ui.Dialog.prototype.options.localization, {
                "close": "Close"
            });
    }

    /* Calendar */
    if (kendo.ui.Calendar) {
        kendo.ui.Calendar.prototype.options.messages =
            $.extend(true, kendo.ui.Calendar.prototype.options.messages, {
                "weekColumnHeader": ""
            });
    }

    /* Alert */

    if (kendo.ui.Alert) {
        kendo.ui.Alert.prototype.options.messages =
            $.extend(true, kendo.ui.Alert.prototype.options.localization, {
                "okText": "OK"
            });
    }

    /* Confirm */

    if (kendo.ui.Confirm) {
        kendo.ui.Confirm.prototype.options.messages =
            $.extend(true, kendo.ui.Confirm.prototype.options.localization, {
                "okText": "OK",
                "cancel": "Cancel"
            });
    }

    /* Prompt */
    if (kendo.ui.Prompt) {
        kendo.ui.Prompt.prototype.options.messages =
            $.extend(true, kendo.ui.Prompt.prototype.options.localization, {
                "okText": "OK",
                "cancel": "Cancel"
            });
    }

    /* DateInput */
    if (kendo.ui.DateInput) {
        kendo.ui.DateInput.prototype.options.messages =
            $.extend(true, kendo.ui.DateInput.prototype.options.messages, {
                "year": "year",
                "month": "month",
                "day": "day",
                "weekday": "day of the week",
                "hour": "hours",
                "minute": "minutes",
                "second": "seconds",
                "dayperiod": "AM/PM"
            });
    }

})(window.kendo.jQuery);